<link rel="stylesheet" href="/css/user/index.css"/>
<div class="col-xs-12">
	<ul class="nav nav-tabs nav-justified">
		<li role="presentation" class="active">
			<a href="#">List</a>
		</li>
		<li role="presentation">
			<a href="#">Add</a>
		</li>
	</ul>
	<div class="content">
	</div>
</div>
<div class="col-xs-12">
	<p class="tips">
		<!--<%= (locals.error==undefined ? "" : locals.error)%>-->
	</p>
</div>
<script type="text/javascript" src="/js/user/index.js"></script>
<script>
	$("ul.nav-tabs li").on("click", function() {
		var url = "";
		switch($(this).index()) {
			case 0:
				url = "/user/list";
				break;
			case 1:
				url = "/user/add";
				break;
			default:
				break;
		}
		$.get(url, data => $(".content").html(data));
	});
	$(function() {
		$("ul.nav-tabs li.active").click();
		$("#navbar ul.nav li:first").click();
	})
</script>